package m.jclecai.com.base.digitalLottery;

import android.view.View;
import android.widget.FrameLayout;
import android.widget.LinearLayout;

import m.jclecai.com.R;
import m.jclecai.com.base.BaseActivity;
import m.jclecai.com.view.common.VeticalDrawerLayout;

/**
 * Created by andy on 2017/7/6.
 * <p>
 * 数字彩的一个抽象父类；
 */
public abstract class BaseDigitalLotteryActivity extends BaseActivity {

    protected FrameLayout mFlHeader;

    protected FrameLayout mFlInner;


    protected LinearLayout mFlContentView;


    protected FrameLayout mFlNumberMoney;


    protected FrameLayout mFlBottom;


    protected VeticalDrawerLayout mDrawerLayout;

    @Override
    protected int getContentView() {
        return R.layout.activity_base_digital_lottery;
    }

    @Override
    protected void initLoadingView() {
        super.initLoadingView();

        mFlContentView=(LinearLayout) vBody.findViewById(R.id.fl_content_view);
        mFlInner=(FrameLayout) vBody.findViewById(R.id.fl_inner);
        mFlHeader=(FrameLayout) vBody.findViewById(R.id.fl_header);
        mFlBottom=(FrameLayout) vBody.findViewById(R.id.fl_bottom);
        mFlNumberMoney=(FrameLayout) vBody.findViewById(R.id.fl_number_money);

        mDrawerLayout=(VeticalDrawerLayout) vBody.findViewById(R.id.drawer_layout);

        View.inflate(this,getContentRes(),mFlContentView);
        View.inflate(this,getInnerRes(),mFlInner);
        View.inflate(this,getHeaderRes(),mFlHeader);
        View.inflate(this,getBottomRes(),mFlBottom);
        View.inflate(this,getNumberMoneyRes(),mFlNumberMoney);

    }

    protected abstract int getNumberMoneyRes();

    protected abstract int getBottomRes();

    protected abstract int getHeaderRes();

    protected abstract int getInnerRes();

    protected abstract int getContentRes();



    public View inflate(int  resId){
        return View.inflate(this,resId,null);
    }

}
